@extends('admin.base')
    @section('content')
        <!-- Content Header (Page header) -->
        <section class="content-header">
          <h1>
            <i class="fa fa-calendar"></i>
			主页选项卡信息修改
          </h1>
          <ol class="breadcrumb">
            <li><a href="#"><i class="fa fa-dashboard"></i> 首页</a></li>
            <li><a href="#">主页选项卡信息修改</a></li>
          </ol>
        </section>
        <!-- Main content -->

		<section class="content">
          <div class="row">
            <!-- right column -->
            <div class="col-md-12">
              <!-- Horizontal Form -->
              <div class="box box-primary">
                <div class="box-header with-border">
                </div><!-- /.box-header -->
                <!-- form start -->
                <form action="{{url('admin/xuanxiangka')}}/{{$list->id}}" method="post" class="form-horizontal" enctype="multipart/form-data">
                  <input type="hidden" name="_token" value="<?php echo csrf_token(); ?>">
				  <input type="hidden" name="_method" value="PUT">
                  <div class="box-body">
                    <div class="form-group">
                      <label for="inputEmail3" class="col-sm-2 control-label">书籍ID：</label>
                      <div class="col-sm-4">
                        <input type="text" name="id" class="form-control" readonly value="{{$list->id}}">
                      </div>
                    </div>
					<div class="form-group">
                      <label for="inputEmail3" class="col-sm-2 control-label">书籍名：</label>
                      <div class="col-sm-4">
                        <input type="text" name="name" class="form-control" value="{{$list->name}}">
                      </div>
                    </div>
					<div class="form-group">
                      <label for="inputEmail3" class="col-sm-2 control-label">书籍卖家：</label>
                        <div class="col-sm-4">
                        当当独家特供：<input type="radio" name="dujia" value="1" checked="@if ($list->dujia==1) checked @endif"/> <br/>
                        其他商家：<input type="radio" name="dujia" value="2" checked="@if ($list->dujia==2) checked @endif"/>
						</div>
                    </div>
					<div class="form-group">
                      <label for="inputEmail3" class="col-sm-2 control-label">书籍新价格：</label>
                      <div class="col-sm-4">
                        <input type="text" name="newprice" class="form-control" value="{{$list->newprice}}">
                      </div>
                    </div>
					<div class="form-group">
                      <label for="inputEmail3" class="col-sm-2 control-label">书籍旧价格：</label>
                      <div class="col-sm-4">
                        <input type="text" name="oldprice" class="form-control" value="{{$list->oldprice}}">
                      </div>
                    </div>
					<div class="form-group">
                      <label for="inputEmail3" class="col-sm-2 control-label">书籍介绍：</label>
                      <div class="col-sm-4">
                        <input type="text" name="title" class="form-control" value="{{$list->title}}">
                      </div>
                    </div>
					<div class="form-group">
                      <label for="inputEmail3" class="col-sm-2 control-label">书籍类型：</label>
                      <div class="col-sm-4">
                        <input type="text" name="types" class="form-control" value="{{$list->types}}">
                      </div>
                    </div>
					<div class="form-group">
                      <label for="inputEmail3" class="col-sm-2 control-label">书籍父ID：</label>
                      <div class="col-sm-4">
                        <input type="text" name="pid" class="form-control" value="{{$list->pid}}">
                      </div>
                    </div>
					<div class="form-group">
                      <label for="inputPassword3" class="col-sm-2 control-label">图片：</label>
                      <div class="col-sm-4">
                        <img width="100" src="{{asset('/img/home')}}/{{$list->src}}"/>
                      </div>
                    </div>
					<div class="form-group">
                      <label for="inputEmail3" class="col-sm-2 control-label">图片上传：</label>
                      <div class="col-sm-4">
                        <input type="file" name="myfile">
                      </div>
                  </div><!-- /.box-body -->
                  <div class="box-footer">
				    <div class="col-sm-offset-2 col-sm-1">
						<button type="submit" class="btn btn-primary">修改</button>
                    </div>
					<div class="col-sm-1">
						<button type="submit" class="btn btn-primary">重置</button>
					</div>
                  </div><!-- /.box-footer -->
                </form>
				<div class="row"><div class="col-sm-12">&nbsp;</div></div>
              </div><!-- /.box -->
            </div><!--/.col (right) -->
          </div>   <!-- /.row -->
        </section><!-- /.content -->
    @endsection